package com.mbmed.doctor.commons.utils;

import org.glassfish.jersey.filter.LoggingFilter;
import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;

public class RestApplication extends ResourceConfig {
	public RestApplication() {
		// packages("com.mbmed.doctor.his");
		// register(RequestContextFilter.class);
		// register(LoggingFilter.class);
		// register(PersonService.class);
		// register(JspMvcFeature.class);
		packages("com.mbmed.doctor");
		register(LoggingFilter.class);
		/**
		 * 使用JacksonJsonProvider或者JacksonFeature都是可以正确返回json数据的
		 * */
//		register(JacksonJsonProvider.class);
		//注册JSON转换器
	    register(JacksonFeature.class); 		
	}
}
